<?php

class MenuLogin {
    
    // Public Class Members
    public $mLogin;
    public $mUserName;
    public $mIcon;
    public $mShutdownIcon;
    
    // Private Class Members
    private $_ImagePath = "images/";
    private $_ActiveSession = "green_candle32px.png";
    private $_DeactiveSession = "red_candle32px.png";
    private $_ShutdownIcon = "shutdown32px.png";
    
    
    // Class constructor
    public function __construct() {
        
    }

    public function init() {
        
        
        if (!isset($_SESSION['login'])) {
            $this->mIcon = $this->_ImagePath . $this->_DeactiveSession;
        } else {
            $this->mLogin = $_SESSION['login'];
            $this->mIcon = $this->_ImagePath . $this->_ActiveSession;
            $this->mShutdownIcon = $this->_ImagePath . $this->_ShutdownIcon;
        }
  
    }


}



?>
